﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="logined.aspx.cs" Inherits="logined" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>RunSky信息广场</title>
  
    <style type="text/css">
        .style1
        {
            width: 100%;
            height: 669px;
            border: 1px solid #0000FF;
            background-color: #FF99FF;
        }
        table
        {
            clip: rect(auto, auto, auto, auto);
        }
        #form1
        {
            width: 974px;
            height: 1765px;
        }
        .style7
        {
            width: 176px;
            height: 265px;
        }
        .style8
        {
            height: 265px;
        }
        .style9
        {
            width: 176px;
            height: 263px;
        }
        .style10
        {
            height: 263px;
        }
        .style11
        {
            width: 176px;
            height: 302px;
        }
        .style12
        {
            height: 302px;
        }
        .style13
        {
            width: 176px;
            height: 314px;
        }
        .style14
        {
            height: 314px;
        }
    </style>
  
</head>
<center> 
<body>
<form id ="form1" runat="server">

<asp:ScriptManager ID="ScriptManager1" runat="server">
                        </asp:ScriptManager>
    <div id="topdiv" style="width:100%; left: 0px; height:304px;">
    <img src="head.jpg" style="width: 900px; height: 300px; left: 20%; margin-bottom: 4px" />
    </div>
    
    <div id = "leftdiv"   
        style ="border-style: dotted; width:28%; left:20%;"  >
    </div>
    
    <div style="height: 883px; width: 63%; float:left; position:absolute; left:340px; top: 352px;">
    <div style="width:100%; height:25px;">搜索 :<asp:DropDownList ID="DropDownList1" 
            runat="server">
        <asp:ListItem Value="0">图书</asp:ListItem>
        <asp:ListItem Value="1">家电</asp:ListItem>
        <asp:ListItem Value="2">求助</asp:ListItem>
        <asp:ListItem Value="3">服务</asp:ListItem>
        </asp:DropDownList>
&nbsp;
        <asp:DropDownList ID="DropDownList2" runat="server">
            <asp:ListItem Value="0">发布者</asp:ListItem>
            <asp:ListItem Value="1">发布日期</asp:ListItem>
        </asp:DropDownList>
&nbsp;<asp:TextBox ID="TextBoxSearch" runat="server" Width="341px"></asp:TextBox>
&nbsp;
        <asp:Button ID="ButtonSearch" runat="server" Text="搜索" Width="61px" />
    </div>
    <div style="width:100%; height:1434px;">
        <table class="style1">
            <tr>
                <td class="style13">
                    <img src="book.jpg" style="width: 176px; height: 304px" /></td>
                <td align="justify" class="style14">
                    <div align="left" 
                        style="width: 100%; height: 98%; top: 0px; left: 0px; margin-bottom: 0px;">
                        
                        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                            <ContentTemplate>
                                <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
                                    ConnectionString="<%$ ConnectionStrings:infoConnectionString1 %>" SelectCommand="SELECT [book_id], [user_pbmsg], convert(varchar(12),user_datepb,105),user_name  FROM [b_infobook] ,[b_user]
where b_infobook.user_id = b_user.user_id"></asp:SqlDataSource>
                                <asp:GridView ID="GridView1" runat="server" AllowPaging="True" 
                                    AutoGenerateColumns="False" CaptionAlign="Top" CellPadding="4" 
                                    DataSourceID="SqlDataSource1" ForeColor="#333333" GridLines="None" 
                                    Height="304px" HorizontalAlign="Left" 
                                     PageSize="8" 
                                    Width="100%">
                                    <FooterStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
                                    <RowStyle BackColor="#FFFBD6" ForeColor="#333333" />
                                    <Columns>
                                        <asp:BoundField DataField="book_id" HeaderText="产品ID" ReadOnly="True" 
                                            SortExpression="book_id" />
                                        <asp:BoundField DataField="user_pbmsg" HeaderText="标题" 
                                            SortExpression="user_pbmsg" />
                                        <asp:BoundField DataField="Column1" HeaderText="发布日期" 
                                            SortExpression="Column1" />
                                        <asp:BoundField DataField="user_name" HeaderText="发布者" 
                                            SortExpression="user_name" />
                                    </Columns>
                                    <PagerStyle BackColor="#FFCC66" ForeColor="#333333" HorizontalAlign="Center" />
                                    <SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="Navy" />
                                    <HeaderStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
                                    <AlternatingRowStyle BackColor="White" />
                                </asp:GridView>
                            </ContentTemplate>
                        </asp:UpdatePanel>
                    </div>
                </td>
            </tr>
            <tr>
                <td class="style11">
                    <img src="elc.jpg" style="width: 176px; height: 326px" /></td>
                <td class="style12">
                    <div style="width: 100%; height: 100%">
                        <asp:UpdatePanel ID="UpdatePanel3" runat="server">
                            <ContentTemplate>
                                <asp:GridView ID="GridView2" runat="server" 
    AllowPaging="True" AutoGenerateColumns="False" CellPadding="4" DataSourceID="SqlDataSource2" Height="304px" 
    HorizontalAlign="Left" Width="100%" ForeColor="#333333" GridLines="None">
                                    <FooterStyle BackColor="#990000" ForeColor="White" Font-Bold="True" />
                                    <RowStyle BackColor="#FFFBD6" ForeColor="#333333" />
                                    <Columns>
                                        <asp:BoundField DataField="elc_id" HeaderText="产品ID" 
            ReadOnly="True" SortExpression="elc_id" />
                                        <asp:BoundField DataField="user_pbmsg" HeaderText="标题" 
            SortExpression="user_pbmsg" />
                                        <asp:BoundField DataField="Column1" HeaderText="发布日期" 
            SortExpression="Column1" />
                                        <asp:BoundField DataField="user_name" HeaderText="发布者" 
            SortExpression="user_name" />
                                    </Columns>
                                    <PagerStyle ForeColor="#333333" 
        HorizontalAlign="Center" BackColor="#FFCC66" />
                                    <SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" 
        ForeColor="Navy" />
                                    <HeaderStyle BackColor="#990000" Font-Bold="True" 
        ForeColor="White" />
                                    <AlternatingRowStyle BackColor="White" />
                                </asp:GridView>
                            </ContentTemplate>
                        </asp:UpdatePanel>
                        <asp:SqlDataSource ID="SqlDataSource2" runat="server" 
                            ConnectionString="<%$ ConnectionStrings:infoConnectionString1 %>" SelectCommand="SELECT [elc_id], [user_pbmsg], convert(varchar(12),user_datepb,105),user_name  FROM [b_infoelc] ,[b_user]
where b_infoelc.user_id = b_user.user_id"></asp:SqlDataSource>
                    </div>
                </td>
            </tr>
            <tr>
                <td class="style7">
                    <img src="service.jpg" style="width: 176px; height: 325px" /></td>
                <td class="style8">
                    <div style="width: 100%; height: 100%">
                        <asp:UpdatePanel ID="UpdatePanel4" runat="server">
                            <ContentTemplate>
                                <asp:GridView ID="GridView3" runat="server" 
    AllowPaging="True" AutoGenerateColumns="False" CellPadding="4" 
    DataKeyNames="help_id" DataSourceID="SqlDataSource3" GridLines="None" 
    Height="304px" HorizontalAlign="Left" Width="100%" ForeColor="#333333">
                                    <FooterStyle BackColor="#990000" ForeColor="White" Font-Bold="True" />
                                    <RowStyle BackColor="#FFFBD6" ForeColor="#333333" />
                                    <Columns>
                                        <asp:BoundField DataField="help_id" HeaderText="产品ID" 
            ReadOnly="True" SortExpression="help_id" />
                                        <asp:BoundField DataField="user_pbmsg" 
            HeaderText="标题" SortExpression="user_pbmsg" />
                                        <asp:BoundField DataField="Column1" HeaderText="发布日期" 
            ReadOnly="True" SortExpression="Column1" />
                                        <asp:BoundField DataField="user_name" 
            HeaderText="发布者" SortExpression="user_name" />
                                    </Columns>
                                    <PagerStyle BackColor="#FFCC66" ForeColor="#333333" 
        HorizontalAlign="Center" />
                                    <SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" 
        ForeColor="Navy" />
                                    <HeaderStyle BackColor="#990000" Font-Bold="True" 
        ForeColor="White" />
                                    <AlternatingRowStyle BackColor="White" />
                                </asp:GridView>
                            </ContentTemplate>
                        </asp:UpdatePanel>
                        <asp:SqlDataSource ID="SqlDataSource3" runat="server" 
                            ConnectionString="<%$ ConnectionStrings:infoConnectionString1 %>" SelectCommand="SELECT [help_id], [user_pbmsg], convert(varchar(12),user_datepb,105),user_name  FROM [b_infohelp] ,[b_user]
where b_infohelp.user_id = b_user.user_id"></asp:SqlDataSource>
                    </div>
                </td>
            </tr>
            <tr>
                <td class="style9">
                    <img src="help.jpg" style="width: 176px; height: 326px" /></td>
                <td class="style10">
                    <div style="width: 100%; height: 100%">
                        <asp:UpdatePanel ID="UpdatePanel2" runat="server">
                            <ContentTemplate>
                                <asp:GridView ID="GridView4" runat="server" 
    AllowPaging="True" AutoGenerateColumns="False" CellPadding="4" 
    DataKeyNames="teach_id" DataSourceID="SqlDataSource4" GridLines="None" 
    Height="304px" HorizontalAlign="Left" Width="100%" ForeColor="#333333">
                                    <FooterStyle BackColor="#990000" ForeColor="White" Font-Bold="True" />
                                    <RowStyle BackColor="#FFFBD6" ForeColor="#333333" />
                                    <Columns>
                                        <asp:BoundField DataField="teach_id" 
            HeaderText="产品ID" ReadOnly="True" SortExpression="teach_id" />
                                        <asp:BoundField DataField="user_pbmsg" 
            HeaderText="标题" SortExpression="user_pbmsg" />
                                        <asp:BoundField DataField="Column1" HeaderText="发布日期" 
            ReadOnly="True" SortExpression="Column1" />
                                        <asp:BoundField DataField="user_name" 
            HeaderText="发布者" SortExpression="user_name" />
                                    </Columns>
                                    <PagerStyle BackColor="#FFCC66" ForeColor="#333333" 
        HorizontalAlign="Center" />
                                    <SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" 
        ForeColor="Navy" />
                                    <HeaderStyle BackColor="#990000" Font-Bold="True" 
        ForeColor="White" />
                                    <AlternatingRowStyle BackColor="White" />
                                </asp:GridView>
                            </ContentTemplate>
                        </asp:UpdatePanel>
                        <asp:SqlDataSource ID="SqlDataSource4" runat="server" 
                            ConnectionString="<%$ ConnectionStrings:infoConnectionString1 %>" SelectCommand="SELECT [teach_id], [user_pbmsg], convert(varchar(12),user_datepb,105),user_name  FROM [b_infoteach] ,[b_user]
where b_infoteach.user_id = b_user.user_id"></asp:SqlDataSource>
                    </div>
                </td>
            </tr>
        </table>
    </div>
    </div>
    
    </form>
    </body>
</center>    
</html>
